import axios from 'axios'
import {URL} from '@/utils/url'

//获取关注数和粉丝数
export function search(search){
  const url = URL + 'api/search'
  const data ={
    'search': search,
  }
  return axios.get(url,{
    params: data
  }).then(res => {
    return Promise.resolve(res)
  })
}